using System;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Joy.Erp.BasicArchives.Core.Filters;

namespace Joy.Erp.BasicArchives.Customers
{
    public interface ICustomerAppService
    {
        Task<CustomerDto> GetAsync(Guid id);
        Task<CustomerDto> FindAsync(string filter);
        Task<CustomerDto> FindBySourceKeyAsync(string sourceKey, string sourceType);
        Task<PagedResultDto<CustomerDto>> GetListAsync(FilterRequestDto input);
        Task<PagedResultDto<CustomerDto>> QueryAsync(FilterGroupRequestDto input);
        Task<CustomerDto> CreateAsync(CustomerCreateDto input);
        Task<CustomerDto> UpdateAsync(Guid id, CustomerUpdateDto input);
        Task DeleteAsync(Guid id);
    }
}